//============================================================================
// Copyright (C) 2013 Brett R. Jones
//
// Issued to public domain 2013
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================
#pragma once
//! implement singleton
template<typename T> class VxSingleton 
{
public:
	static T &Instance() 
	{
		static T VxSingletonInstance;
		return VxSingletonInstance;
	}
private:
	//=== constructor ===//
	VxSingleton();
	//=== constructor ===//
	VxSingleton(VxSingleton const &Object);
	//=== destructor ===//
	~VxSingleton();
	//=== operator ===//
	VxSingleton &operator=(VxSingleton const &Object);
};
